#include<iostream>
using namespace std;
int main()
{
	int n, m;
	cin >> n >> m;
	int a[101] = { 0 };
	int flag;
	int sum = 0;
	for (int i = 0;i < n ; i++)
	{
		cin >> flag;
		if (a[flag-1] == 0 )
		{
			a[flag-1] = 1;
			sum++;
		}
		if (a[flag] == 0&&(flag)<m)
		{
			a[flag] = 1;
			sum++;
		}

		if (sum == m)
		{
			break;
		}
	}
	if (sum == m)
	{
		cout << "Accepted";
	}
	else
	{
		cout << m - sum<<endl;
		for (int i = 0;i < m;i++)
		{
			if (a[i] != 1)
			{
				cout << i + 1 << ' ';
			}
		}
	}
	return 0;
}